package com.xbongbong.pro.businessdata.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@Getter
@Setter
@ToString
public class DistributorReceiverDTO extends BaseDTO {

    private static final long serialVersionUID = 8306051841998462529L;
    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.businessData.sourceBusinessType.NotNull}")
    private Integer sourceBusinessType;

    /**
     * 表单id,多模板业务必传
     */
    private Long formId;

    /**
     * 经销商id
     */
    private Long distributorId;

    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.businessData.saasMark.NotNull}")
    private Integer saasMark;

    /**
     * 分页当前页
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer page;

    /**
     * 分页每页记录数
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer pageSize;


    /**
     * 模糊搜索
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private String nameLike;

    /**
     * 仓库id
     */
    @NotNull(message = "{dto.msg.businessData.warehouseId.NotNull}")
    private Long warehouseId;
}
